package com.system.mapper;

import com.system.entity.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author XueHeng
 * @since 2020-09-17
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    /*
    根据userId获取权限信息
     */
    public List<Permission> getPermissionByUserId(String userId);

    /*
    获取左侧菜单栏
     */
    public List<Permission> getMenu();

    /*
    根据权限id获取用户Id
     */
    public List<String> getUserIds(String id);

}
